<template>
    <div class="home">
        <button @click="GoHome">回到首页</button>
    </div>
</template>

<script>
    export default {
        name: "gohome",
        methods:{
            GoHome(){
                this.$router.push({path:'/'})
            }
        }
    }
</script>

<style scoped>
    button{
        width: 100px;
        height: 40px;
        background: rgba(0,133,208,1);
        color: white;
        border:1px solid #0085d0;
        border-radius: 2px;

    }

</style>